package com.guigusuqi.app.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 预约挂号管理
 * </p>
 *
 * @author suqi
 * @since 2022-04-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("yy_registration")
@ApiModel(value="Registration对象", description="预约挂号管理")
public class Registration implements Serializable
{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "预约编号")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "预约科室编号")
    private String officeId;

    @ApiModelProperty(value = "挂号费用")
    private String price;

    @ApiModelProperty(value = "科室名")
    private String officeName;

    @ApiModelProperty(value = "预约日期")
    private String appointmentDate;

    @ApiModelProperty(value = "预约时间")
    private String appointmentTime;

    @ApiModelProperty(value = "预约医生编号")
    private Integer doctorId;

    @ApiModelProperty(value = "预约医生姓名")
    private String doctorName;

    @ApiModelProperty(value = "预约地址")
    private String address;

    @ApiModelProperty(value = "预约人身份证")
    private String identical;

    @ApiModelProperty(value = "预约人姓名")
    private String userName;

    @ApiModelProperty(value = "预约人联系方式")
    private String userMobile;

    @ApiModelProperty(value = "预约状态")
    private String status;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建者")
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "更新者")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "是否删除")
    @TableLogic(value = "0" ,delval = "1")
    @TableField(fill = FieldFill.INSERT)
    private String delFlag;

    //这是后加的属性
    @ApiModelProperty(value = "排班id")
    private String timeid;

    @ApiModelProperty(value = "openid")
    private String openid;


}
